<include file="Public:header" />

<div class="pad_10">
<form action="{:u('cate/insert')}" method="post" name="myform" id="myform" >
<table width="100%" cellpadding="2" cellspacing="1" class="table_form">
	<tr> 
      <th width="100">{$Think.lang.cate_name} :</th>
      <td><input type="text" name="cate_name" id="cate_name" class="input-text"></td>
    </tr>
    <tr> 
      <th>{$Think.lang.last_cate} :</th>
      <td>
          <select name="pid">
            <option value="0">--顶级分类--</option>
            <volist name="cate_list['parent']" id="val">
            <option value="{$val.cate_id}">{$val.cate_name}</option>
            	<notempty name="cate_list['sub'][$val['cate_id']]">
                <volist name="cate_list['sub'][$val['cate_id']]" id="sval">
                <option value="{$sval.cate_id}">&nbsp;&nbsp;&nbsp;&nbsp;{$sval.cate_name}</option>
                    <notempty name="cate_list['sub'][$sval['cate_id']]">
                    <volist name="cate_list['sub'][$sval['cate_id']]" id="ssval">
                    <option value="{$ssval.cate_id}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$ssval.cate_name}</option>
                    </volist>
                    </notempty>
                </volist>
            	</notempty>
            </volist>
          </select>
        </td>
    </tr>
	<tr> 
      <th>{$Think.lang.sort} :</th>
      <td><input type="text" name="sort_order" id="sort_order" class="input-text" value="255"></td>
    </tr>
</table>
<input type="submit" name="dosubmit" id="dosubmit" class="dialog" value=" ">
</form>
</div>
</body>
</html>